package com.sh.data.engine.application.model.mapper.integration;

import com.sh.data.engine.application.model.dto.integration.FlinkDatabaseResponse;
import com.sh.data.engine.domain.integration.online.model.domain.FlinkDatabaseDomain;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

/**
 * @author: mengzheng.mhc
 * @date: 2024/7/2 16:44
 */
@Mapper(componentModel = "spring")
public interface FlinkDatabaseResponseMapper {

    @Mapping(source = "domain.dsId", target = "dsId")
    FlinkDatabaseResponse map(FlinkDatabaseDomain domain);

    List<FlinkDatabaseResponse> map(List<FlinkDatabaseDomain> domains);
}
